home *** CD-ROM | disk | FTP | other *** search
/ Danny Amor's Online Library / Danny Amor's Online Library - Volume 1.iso / html / faqs / faq / sgi / faq.movie < prev    next >
Encoding:
Text File  |  1995-07-25  |  41.9 KB  |  1,074 lines

  1. Subject: SGI movie Frequently Asked Questions (FAQ)
  2. Newsgroups: comp.sys.sgi.misc,comp.answers,news.answers
  3. From: sgi-faq@viz.tamu.edu (The SGI FAQ group)
  4. Date: 20 Nov 1994 07:02:59 GMT
  5.  
  6. Archive-name: sgi/faq/movie
  7. Last-modified: Sat Nov 19 10:52:36 CST 1994
  8.  
  9.     SGI movie Frequently Asked Questions (FAQ)
  10.  
  11. This is one of the Silicon Graphics FAQ series, which consists of:
  12.  
  13.     SGI admin FAQ - IRIX system administration
  14.     SGI apps FAQ - Applications and miscellaneous programming
  15.     SGI audio FAQ - Audio applications and programming
  16.     SGI graphics FAQ - Graphics and user environment customization
  17.     SGI hardware FAQ - Hardware
  18.     SGI Impressario FAQ - IRIS Impressario
  19.     SGI Inventor FAQ - IRIS Inventor
  20.     SGI misc FAQ - Introduction & miscellaneous information
  21.     SGI movie FAQ - Movies
  22.     SGI Performer FAQ - IRIS Performer
  23.     SGI pointer FAQ - Pointer to the other FAQs
  24.  
  25. Read the misc FAQ for information about the FAQs themselves.  Each FAQ
  26. is posted to comp.sys.sgi.misc and to the news.answers and comp.answers
  27. newsgroups (whose purpose is to store FAQs) twice per month.  If you
  28. can't find one of the FAQs with your news program, you can get it by
  29. anonymous FTP from one of these sites:
  30.  
  31.     rtfm.mit.edu:/pub/usenet/comp.sys.sgi.misc/
  32.     rtfm.mit.edu:/pub/usenet/news.answers/sgi/faq/
  33.     rtfm.mit.edu:/pub/usenet/comp.answers/sgi/faq/
  34.     viz.tamu.edu:/pub/sgi/faq/
  35.  
  36. Note that rtfm.mit.edu is home to many other FAQs and informational
  37. documents, and is a good place to look if you can't find an answer
  38. here. If you can't use FTP, send mail to mail-server@rtfm.mit.edu with
  39. the command 'send usenet/news.answers/ftp-list/faq' on a line by itself
  40. in the text, and it will send you a document describing how to FTP by
  41. mail. You can also read a hypertext version of the FAQs at
  42.  
  43.     http://www.cis.ohio-state.edu/hypertext/faq/usenet/sgi/top.html
  44.  
  45. The SGI FAQs are freely distributable and we encourage wide circulation.
  46. The contents are accurate as far as we know, but the usual disclaimers
  47. apply. Please send additions and changes to sgi-faq@viz.tamu.edu.
  48.  
  49. Topics covered in this FAQ:
  50. ---------------------------
  51. !  -1- Is there a QuickTime movieplayer available for SGI (IRIX
  52.        4.0.5F)???
  53. !  -2- I cannot play a QuickTime movie on my Silicon Graphics computer.
  54.        How can I make it work?
  55.    -3- I cannot play a QuickTime movie created on a Silicon Graphics
  56.        computer on my Macintosh.  How can I make it work?
  57. !  -4- What version of QuickTime does Silicon Graphics support?
  58. !  -5- How can I create a QuickTime file on an SGI?
  59. !  -6- I need to play MPEG movies.  Does SGI offer MPEG support?
  60.    -7- I created a movie with Capture, but now I can't edit it with
  61.        Movie Maker or play it with Movie Player.
  62. !  -8- How can I write a program to create, edit, convert, or play
  63.        movies?  Where can I get a copy of the SGI Movie Library?
  64. !  -9- I can't use images exported with Moviemaker in any of my
  65.        applications.  What image format does Moviemaker use?
  66. ! -10- Can anyone provide details on the SGI movie format?
  67.   -11- Can anyone provide details on the QuickTime movie format?
  68. ! -12- How can I convert from SGI movie format to MPEG?
  69. ! -13- How can I convert from Microsoft AVI movie format to SGI movie
  70.        format?
  71. ! -14- Is there a way to bring up a movie (using movieplayer) within
  72.        Showcase using a button click...and having it place itself
  73.        automatically in a certain location and start?
  74.   -15- I am using Mosaic.  When I try to view a movie, movieplayer
  75.        starts, but then shows a message: no movie.  How can I make it
  76.        work?
  77. + -16- I have the Galileo (or Indy Video) option, but I can't get
  78.        Capture to use it.  When I run it, the IndyCam shows up.  What do
  79.        I do?
  80. + -17- I cannot get the right video to show in the Capture tool! I get
  81.        the a video input other than the one I want or the screen is
  82.        black.  What do I do?
  83. + -18- Why does Capture tell me to "Please Stand By", instead of
  84.        capturing video?
  85. + -19- Capture just grabbed a file for me, but now I can't find it.
  86.        Where did Capture hide it?
  87. + -20- Under IRIX 5.3, my system has a video board and/or IndyCam, but
  88.        Capture won't let me use it.  It just greys out the video options
  89.        on its menu.  How can I make it work?
  90. + -21- I created a movie with audio using makemovie, but the soundtrack
  91.        plays back really garbled and choppy.  What do I do?
  92. + -22- Does anyone know the maximum size a movie file that MovieMaker or
  93.        MoviePlayer can handle?  Is it limited by free memory, or will it
  94.        play from the hard drive?
  95. + -23- How do I write a program to access the pixels of a video frame in
  96.        a movie file for image processing purposes?
  97. + -24- How do I write a program which can write individual frames from a
  98.        movie file out to a still image file?
  99. + -25- I'm using the Movie Library to create QuickTime movies using
  100.        Apple's Video compression.  When are default key-frames placed in
  101.        a QuickTime movie made with the SGI movie library?
  102. + -26- The Movie Library has calls to play a movie in a file, memory or
  103.        a file descriptor.  But all of them seem to assume that the
  104.        complete movie is available locally.  How can I play a movie all
  105.        of which is not available locally?
  106. + -27- When programming with the Movie Library, can we insert and delete
  107.        frames from a playing movie?
  108. + -28- When writing frames to a movie with the Movie Library, if we fix
  109.        the image track parameters, does the byte size of the frame
  110.        remain constant across frames?
  111. + -29- How do I write a program to play a movie entirely from memory?
  112. + -30- How do I capture movies from live video within my application?
  113. + -31- How do I write a program to read and write compressed data to a
  114.        movie file?
  115. + -32- I want to write a program which creates a JPEG-compressed movie
  116.        file, but I need to control the compression quality.  How do I do
  117.        this with the Movie Library?
  118. + -33- I want to write a program which can create a JPEG-compressed
  119.        movie file compatible with the Cosmo Compress board, SGI's
  120.        hardware JPEG accelerator.  How do I do this?
  121. + -34- I simply want to create a JPEG-compressed movie which is
  122.        compatible with the Cosmo Compress board.  I don't want to write
  123.        my own program.  How do I do this?
  124.  
  125. ----------------------------------------------------------------------
  126.  
  127. Subject: !  -1- Is there a QuickTime movieplayer available for SGI (IRIX
  128.                 4.0.5F)???
  129. Date: Tue Nov 15 15:00:28 PST 1994
  130.  
  131.   SGI provides QuickTime movie support as part of Movieplayer in IRIX
  132.   5.1 and later.  If you can't or don't wish to upgrade, you may wish
  133. ! to investigate a public domain program called Xanim which offers
  134. ! Quicktime capability.
  135.  
  136. ! The latest version of XAnim is 2.68.3 and is available from the
  137. ! following location:
  138.  
  139. ! ftp://export.lcs.mit.edu/contrib/applications/xanim2683.README
  140. ! ftp://export.lcs.mit.edu/contrib/applications/xanim2683.tar.Z
  141.   
  142. ! Version 2.68.3 does not support audio, but apparently this feature
  143. ! is in the works. 
  144. ! If you are running IRIX 4.0.5 (any variant) or earlier, please
  145. ! consider upgrading to IRIX 5.3 (available December 1993 or January
  146. ! 1994).  It contains a more full-featured set of movie tools
  147. ! bundled with the system.
  148.  
  149. ------------------------------
  150.  
  151. Subject: !  -2- I cannot play a QuickTime movie on my Silicon Graphics
  152.                 computer. How can I make it work?
  153. Date: Tue Nov 15 15:04:39 PST 1994
  154.  
  155.   Here is a checklist of things to try:
  156.  
  157. ! - You should be using the 5.2 MR version of the OS or later.
  158.  
  159.   - The QT movie must be "flattened".  Use the Apple Movie Converter
  160. !   program and choose BOTH "Make playable on non-Apple systems" and
  161. !   "Make self-contained" in the Save As dialog.  The file must
  162. !   also be compressed with an algorithm we support.  For example,
  163. !   do not choose "Cinepak" or "Compact Video".
  164.  
  165.   - Try changing the compression to something else, say "none" to see
  166.     if that may be the problem.
  167.  
  168.   SGI has licensed the QuickTime movie file format and 2 compressors
  169.   from Apple.  As a result, one can display QuickTime movies compressed
  170.   with the RLE or RPZA algorithms (Apple Video and Apple Graphics) with
  171.   the bundled SGI movieplayer. SGI currently does not support Cinepak
  172.   compression.  Also, the SGI movie tools currently do not support
  173.   QuickTime movies which contain an edit list.
  174.  
  175.   Typically, a QuickTime file on the Macintosh stores all of the movie
  176.   parameters and header information in the resource fork, and the
  177.   actual media (sound + video) in the data fork.  To be used on a
  178.   computer which has a conventional file system (such as the Indigo),
  179.   you must first "flatten" the movie on the Macintosh before
  180.   transferring it to the Indigo.  This is what the "Make playable on
  181.   non-Apple systems" option in the Apple Movie Converter does.
  182.  
  183.   The Apple Movie Converter is part of the QuickTime Starter Kit, a
  184.   software package sold by Apple Computer for Macintosh systems.  It is
  185.   available from retail software distributors.
  186.  
  187. ------------------------------
  188.  
  189. Subject:    -3- I cannot play a QuickTime movie created on a Silicon
  190.                 Graphics computer on my Macintosh.  How can I make it
  191.                 work?
  192. Date: Mon Aug 15 11:21:19 PDT 1994
  193.  
  194.   When going from an SGI to a Mac, the file must have a creator and
  195.   file type.  This can be done in "ResEdit".
  196.  
  197.   To move a file to the Mac...
  198.  
  199.   Save the file in a Quicktime format (using quicktime_dev, the
  200.   QuickTime Development option or another tool)
  201.   Move the file to a Mac (using the floptical, or ftp)
  202.  
  203.     NOTE:  If using ftp, make sure the mode is binary, *not* macbinary
  204.  
  205.   Open the Mac program "ResEdit"
  206.   Select "Get File info..." from File menu
  207.   Type "MooV" into file type field, and "TVOD" into creator field
  208.   Close dialog (Choose Yes to save changes)
  209.   Quit "ResEdit"
  210.  
  211.   It should just work from here.
  212.  
  213.   In IRIX 5.3 the file type and creator will be created automatically
  214.   if you drag the file to a Mac volume using the Indigo Magic desktop.
  215.  
  216. ------------------------------
  217.  
  218. Subject: !  -4- What version of QuickTime does Silicon Graphics support?
  219. Date: Tue Nov 15 15:13:01 PST 1994
  220.  
  221.   Silicon Graphics does not provide support for the QuickTime
  222.   programming library, but only for the QuickTime file format.
  223.  
  224.   The definition of the QuickTime file format has not changed since its
  225.   original release.  Apple's enhancements have mostly been in the form
  226.   of performance improvements and new features to QuickTime which have
  227.   not changed the basic file format.  So, in some sense SGI supports
  228.   every version of QuickTime.  But to answer the question practically,
  229.   we do not support some features which Apple introduced in later
  230. ! releases of QuickTime, such as the Cinepak codec.  Nor do we support
  231. ! "non-flattened" movies which contain separate resource and data
  232. ! forks.
  233.  
  234. ------------------------------
  235.  
  236. Subject: !  -5- How can I create a QuickTime file on an SGI?
  237. Date: Tue Nov 15 15:15:04 PST 1994
  238.  
  239. ! SGI does not provide a method to create QuickTime movie files in
  240. ! the 5.2 release of the Movie Tools.  If you obtain the
  241.   Digital Media Development Option, together with the QuickTime
  242.   Development option, you can obtain a tool which will create QuickTime
  243.   files on an SGI system.  We are not able to include this tool with
  244.   the basic IRIX distribution due to our licensing agreements with
  245.   Apple Computer.
  246.  
  247.   See elsewhere in this FAQ for more information on both the Digital
  248.   Media Development Option and the QuickTime Developer's Option.
  249.  
  250. ! IRIX 5.3 contains a version of Movie Maker which can export to
  251. ! the QuickTime file format.
  252. ! There is a commercially available tool which will allow creation
  253. ! of both SGI and QuickTime movies under IRIX 5.2 called Image
  254. ! Independence. It is a batch image converter with A GUI and
  255. ! command-line versions. It lists for $495, comes with over 20
  256. ! image formats, is fast and flexible. It can be purchased from
  257. ! Elastic Reality, Inc. at (608) 273-6585.  It can also convert
  258. ! movies from one type to another, or split movies into
  259. ! separate frames.
  260.  
  261. ------------------------------
  262.  
  263. Subject: !  -6- I need to play MPEG movies.  Does SGI offer MPEG
  264.                 support?
  265. Date: Tue Nov 15 15:15:04 PST 1994
  266.  
  267.   The current SGI movieplayer does not support MPEG movies.  Support
  268. ! for MPEG playback and file conversion will appear as an optional
  269. ! product, shortly after IRIX 5.3 becomes available.
  270.  
  271.   For free, you have several options.
  272.  
  273.   1) You can use the Berkeley mpeg_play. You can get the file
  274.   mpeg_play.Z by anonymous ftp from
  275.  
  276. !     ftp://sgigate.sgi.com/pub/Mosaic/mpeg_play.Z
  277.  
  278.   Please use the binary transfer mode to get that file, and then
  279.   enter:
  280.  
  281.       uncompress mpeg_play.Z
  282.  
  283.   to get mpeg_play.  You can use mpeg_play to play MPEG files specified
  284.   in Mosaic documents.
  285.  
  286.   2) Another MPEG player is available via FTP.  Here is its URL:
  287.  
  288. !     ftp://geom.umn.edu/priv/daeron/src/mpeg_play-src.tar.Z
  289.  
  290.   This MPEG player has Motif frame controls.
  291.  
  292. ! 3) You might want to check out sgimpeg, a program based on
  293.   mpeg_play, with all graphics replaced with IrisGL calls.  It also
  294.   features some limited frame controls. The full package, bit, also
  295.   offers conversions of any frames within the MPEG stream to
  296.   jpeg/pnm/rgb and other formats.  Both bit and sgimpeg are available
  297.   from
  298.  
  299. !     ftp://monte.svec.uh.edu/pub/bit/
  300.  
  301.   via anonymous ftp.
  302.   
  303. + [ Editors note: at the time of latest revision, sgimpeg was not
  304. +   available at this Internet location. ]
  305. +   
  306. + 4) Here is yet another MPEG player from Greg Ward (greg@pet.mni.mcgill.ca):
  307.  
  308. + I have also written a GL-specific MPEG player -- same general
  309. + idea as sgimpeg, but it has a cruder user interface (all keyboard) and
  310. + a lot more features (memory or disk buffering, pixel doubling/tripling/
  311. + whatever, pause, single step forward or backward).
  312.  
  313. + It's available by anonymous ftp from yorick.mni.mcgill.ca, in /pub/mpeg.
  314.  
  315. ------------------------------
  316.  
  317. Subject:    -7- I created a movie with Capture, but now I can't edit it
  318.                 with Movie Maker or play it with Movie Player.
  319. Date: 20 May 1994 00:00:01 EST
  320.  
  321.   Check to see that you are using compatible versions of the tools.
  322.   Odds are that you created the movie with Capture (an application in
  323.   IRIX 5.1 and later), but are trying to use the tools from an IRIX
  324.   4.0.5 to view and manipulate them.
  325.  
  326.   The IRIX 5.x versions of the movie tools can read files created by
  327.   the 4.0.5 tools, but the reverse is not true.
  328.  
  329. ------------------------------
  330.  
  331. Subject: !  -8- How can I write a program to create, edit, convert, or
  332.                 play movies?  Where can I get a copy of the SGI Movie
  333.                 Library?
  334. Date: Wed Nov 16 13:04:20 PST 1994
  335.  
  336. ! The Digital Media Development Option contains the Video,
  337. ! Audio, Audio File, MIDI, CD, DAT, Movie, and Compression
  338. ! Libraries.  It allows you to perform tasks like these
  339. ! inside your application:
  340.  
  341. ! - perform audio, video, MIDI I/O on SGI machines (including
  342. !   programming the IndyCam)
  343.  
  344. ! - convert audio/video data between different formats
  345. !   (this includes software and hardware
  346. !   compression/decompression for audio and video)
  347.  
  348. ! - read/write digital media file formats (SGI movie,
  349. !   QuickTime, AIFF/AIFF-C sound files)
  350.  
  351. ! - read/write DAT audio tapes using SGI SCSI DAT drive, read
  352. !   CD audio disks using SGI SCSI CD drive.
  353.  
  354.   The part number for the Digital Media Development Option is
  355. ! SC4-DMDEV-2.0.   If you would like to develop applications
  356. ! which manipulate QuickTime files, you must also order the
  357. ! companion product, QuickTime 1.0 Compressor Library, part
  358. ! number SC4-QTCL-1.0.  The Digital Media Development Option
  359. ! requires IRIX 5.2 or later (both part numbers above are
  360. ! for the IRIX 5.2 versions).
  361.  
  362. ! In order to use the Digital Media Development Option, you
  363. ! also need to have IDO 5.2.  This is the basic IRIS
  364. ! developer option, including compilers, basic C library
  365. ! headers, graphics libraries, etc.
  366.  
  367. ! In the United States, you can order these products by
  368. ! calling Silicon Graphics toll-free at 1-800-800-SGI1
  369. ! (1-800-800-7441).  If you live in a country other than the
  370. ! United States, contact your nearest Silicon Graphics
  371. ! office, or call one of these regional telephone numbers:
  372.  
  373. ! Europe        (41) 22-798.75.25     (Geneva, CH)
  374. ! North Pacific        (81) 3-5420.71.10
  375. ! South Pacific        (61) 2-879.95.00
  376. ! Latin America        1(415) 390.46.37
  377. ! Canada        1(416) 625-4747
  378.  
  379. ! Starting with IRIX 5.3 (due December 1994), the Digital
  380. ! Media Development Environment will be included as a
  381. ! standard piece of IDO, and you will no longer need to order
  382. ! it separately.  However, the QuickTime 1.0 Compressor
  383. ! Library will remain a separate product, due to SGI's
  384. ! licensing agreements with Apple Computer, Inc.
  385.  
  386. ------------------------------
  387.  
  388. Subject: !  -9- I can't use images exported with Moviemaker in any of my
  389.                 applications.  What image format does Moviemaker use?
  390. Date: Tue Nov 15 15:18:49 PST 1994
  391.  
  392.   Moviemaker exports images using the ImageVision FIT file format.
  393.   This library is supported by the SGI ImageVision Library and its
  394.   assorted tools.
  395.  
  396.   To convert FIT files to another file format, such as SGI rgb or TIFF,
  397.   use the imgcopy(1) program, part of the ImageVision Tools (imgtools)
  398.   product.  The ImageVision Tools are bundled with the basic IRIX
  399.   distribution.
  400.  
  401.   The following shell script will convert a batch of image files to SGI
  402.   format, using imgcopy:
  403.  
  404.   #----------------------- cut here ---------------------------
  405.   #!/bin/csh
  406.   #
  407.   # iv2sgi - convert a batch of imagevision-supported files to SGI
  408.   # .rgb format using imgcopy
  409.   #
  410.   # usage: iv2sgi <filenames>
  411.   #
  412.  
  413.   foreach image ($argv)
  414.       imgcopy -fSGI $image $image.rgb
  415.   end
  416.   #----------------------- cut here ---------------------------
  417.  
  418.   Moviemaker 2.1, to be available in the IRIX 5.3 release,
  419.   will support image export in SGI and TIFF, as well as FIT formats.
  420.  
  421. + NOTE: the IRIX 5.3 version of Moviemaker contains a bug which
  422. + prevents it from exporting images to TIFF format.  Exported images
  423. + will look all black or all white.  If this is important to you,
  424. + you can contact SGI's Technical Assistance Center and ask for a
  425. + patch release of Moviemaker to correct this problem.  (This bug
  426. + was found too late to correct for the 5.3 release).
  427.  
  428.   Finally, if you have the SGI Developer's Toolbox 4.1 CD, you can
  429.   obtain a program called Moviemaster.  Moviemaster converts between
  430.   movies and images. 32 different image formats are currently
  431.   supported. All sgi movie formats are supported.  Moviemaster can
  432.   extract frames from a movie, build a movie from frames, or image
  433.   convert from one format to another.  This program will also be
  434. ! available under the name "Movieconvert" in the IRIX 5.3 release.
  435.  
  436. ------------------------------
  437.  
  438. Subject: ! -10- Can anyone provide details on the SGI movie format?
  439. Date: Tue Nov 15 15:21:19 PST 1994
  440.  
  441.   The contents of the SGI movie file format are not documented.  To
  442.   create and manipulate SGI movie files in your own application, we
  443.   recommend that you use the SGI Movie Library, part of the Digital
  444. ! Media Development environment.  This will not only save you work in your
  445.   application, but will ensure that your program remains compatible
  446.   with any revisions SGI makes to its movie file format.
  447.  
  448.   If you need to manipulate movie files for cross-platform purposes, we
  449.   recommend that you obtain the QuickTime Developer's Option to create
  450.   QuickTime movies which can be used cross-platform.
  451.  
  452.   See elsewhere in this FAQ for more information on both the Digital
  453. ! Media Development Environment and the QuickTime Developer's Option.
  454.  
  455. ------------------------------
  456.  
  457. Subject:   -11- Can anyone provide details on the QuickTime movie
  458.                 format?
  459. Date: 20 May 1994 00:00:01 EST
  460.  
  461.   For more details on the Apple implementation of QuickTime and its
  462.   file format, see "Inside Macintosh:  QuickTime" (ISBN 0-201-62201-7)
  463.   and "Inside Macintosh:  QuickTime Components", both by Apple Computer
  464.   and published by Addison-Wesley.  The former book contains a detailed
  465.   description of the QuickTime file format.
  466.  
  467. ------------------------------
  468.  
  469. Subject: ! -12- How can I convert from SGI movie format to MPEG?
  470. Date: Tue Nov 15 15:21:19 PST 1994
  471.  
  472. ! There is a publically available program which can convert SGI
  473. ! movie files to MPEG.  It was developed by Andreas Paul
  474. ! <paula@informatik.tu-muenchen.de>.  It can be obtained from:
  475.  
  476. ! ftp://ftp.rus.uni-stuttgart.de/pub/systems/sgi/animation/mv2mpeg_final.tar.gz
  477.  
  478. ! It is for IRIX 5.x systems, and supports all versions of the SGI
  479. ! movie file format.
  480.  
  481. ! If you are using IRIX 4.0.x, then get mov2mpeg from
  482.   
  483. ! ftp://ftp.gvu.gatech.edu/pub/gvu/mosaic-info/mosaic/mov2mpeg.tar.gz
  484.  
  485.  
  486. ! Another way to do this is to export all of the images and
  487. ! audio track from the SGI movie file by using moviemaker or makemovie,
  488. ! and feed the result (a sequence of still frames) into one of the
  489. ! public domain MPEG encoders available on the net.
  490.  
  491.   For more information on MPEG, and a list of places where you can
  492.   obtain MPEG encoder software, consult the MPEG Frequently Asked
  493.   Questions document. You can FTP it from
  494.  
  495. !     ftp://ftp.cs.tu-berlin.de/pub/msdos/dos/graphics/mpegfa11.zip
  496. !     ftp://ftp.cs.tu-berlin.de/pub/msdos/dos/graphics/mpegfa20.zip
  497. !     ftp://ftp.cs.tu-berlin.de/pub/msdos/dos/graphics/mpegfa30.zip
  498. !     ftp://ftp.cs.tu-berlin.de/pub/msdos/dos/graphics/mpegfa31.zip
  499.  
  500.   These documents are versions 1.1, 2.0, 3.0, and 3.1 of the MPEG FAQ
  501.   document.
  502.  
  503. ------------------------------
  504.  
  505. Subject: ! -13- How can I convert from Microsoft AVI movie format to SGI
  506.                 movie format?
  507. Date: Tue Nov 15 15:23:16 PST 1994
  508.  
  509.   Currently, there is no utility available to peform this conversion.
  510.   Our current focus is on providing MPEG support in the Movie Tools, so
  511.   look for MPEG to appear before AVI support.
  512.   
  513. + XAnim is a public domain program which can play movies in the AVI
  514. + movie format.  See above for information on how to obtain this tool
  515. + via the Internet.
  516.  
  517. ------------------------------
  518.  
  519. Subject: ! -14- Is there a way to bring up a movie (using movieplayer)
  520.                 within Showcase using a button click...and having it
  521.                 place itself automatically in a certain location and
  522.                 start?
  523. Date: 20 May 1994 00:00:01 EST
  524.  
  525.   Not that I know of.  When we want to play a movie, we usually
  526.   hyperscript the object to run a script, and in the script we place
  527.   the movie where we want to.  Here is an example of the script.  Call
  528.   it with the movie name as an argument.
  529.  
  530.   /usr/sbin/movieplayer -fNv -S$X1,$Y1,360,243 -l 1 -z $ZOOM $1
  531.  
  532.   Define your zoom factor ($ZOOM) and position ( X1 Y1 ) in front of
  533.   this.
  534.  
  535. ------------------------------
  536.  
  537. Subject:   -15- I am using Mosaic.  When I try to view a movie,
  538.                 movieplayer starts, but then shows a message: no movie.
  539.                 How can I make it work?
  540. Date: 20 May 1994 00:00:01 EST
  541.  
  542.   Check the following:
  543.  
  544.   - Is your system running IRIX 4.0.5?  The movieplayer in IRIX 4.0.5
  545.     does not support QuickTime movies.  You will need to upgrade to
  546.     IRIX 5.2 in order to receive QuickTime support in movieplayer.
  547.  
  548.   - Check to see that the movie file was copied over completely by
  549.     Mosaic.  Sometimes Mosaic will fail to transfer the file completely
  550.     if the network load is very high.
  551. +   
  552. + - Finally, the following information submitted by Dave Babcock
  553. +   (daveb@merlin.mti.sgi.com) may prove helpful:
  554.  
  555. + xmosaic includes the capability to automatically play SGI movie files
  556. + referenced by a html document.  Unfortunately, there is a "bug" which
  557. + keeps it from actually working.
  558.  
  559. + Fortunately, there is an easy fix.  Just edit the
  560. + /usr/local/lib/mosaic/mailcap file and change the following line:
  561.  
  562. +   video/x-sgi-movie; movieplayer -l 1 %s; compose=moviemaker %s; \
  563.  
  564. + to be:
  565.  
  566. +   video/x-sgi-movie; movieplayer -f -l 1 %s; compose=moviemaker %s; \
  567.  
  568. + that is just add the -f.
  569.  
  570. + For those who care, the problem is: mosaic copies the movie file to a local
  571. + temp file; spawns movieplayer passing it the name of the temp file; when it
  572. + sees movieplayer "terminate" mosaic nicely deletes the temp file.  But by
  573. + default movieplayer runs in background mode which mosaic interprets as it
  574. + being done and deletes the temp file just before the background task trys to
  575. + open the temp file.  The symptom is that you get the error message:
  576.  
  577. +   Could not open: /usr/tmp/gaaa000-0.mv: No such file or directory
  578. +   could not open movie file
  579.  
  580. + and nothing happens.
  581.  
  582. ------------------------------
  583.  
  584. Subject: + -16- I have the Galileo (or Indy Video) option, but I can't
  585.                 get Capture to use it.  When I run it, the IndyCam shows
  586.                 up.  What do I do?
  587. Date: Tue Nov 15 15:36:26 PST 1994
  588.  
  589. + When run on a system with more than one video device (for example,
  590. + an Indy with both Indy Video and the built-in IndyCam support),
  591. + Capture will use the IndyCam by default.
  592.  
  593. + To force Capture to run using Galileo or Indy Video, enter the following
  594. + command line at a shell prompt:
  595.  
  596. + capture -ev1
  597.  
  598. + Make sure that you are using Capture with IRIX 5.2 or later.
  599.  
  600. ------------------------------
  601.  
  602. Subject: + -17- I cannot get the right video to show in the Capture
  603.                 tool! I get the a video input other than the one I want
  604.                 or the screen is black.  What do I do?
  605. Date: Tue Nov 15 15:39:30 PST 1994
  606.  
  607. + Capture does not allow you to choose a signal source.  It uses the
  608. + system video settings.
  609.  
  610. + To change the system settings for signal source (and hence the signal
  611. + source for Capture), do the following:
  612.  
  613. + Run vcp or videopanel.
  614. +     
  615. + Choose the device (VINO or Galileo/Indy Video) you are using.
  616. + VINO is for the Indy's built-in video (both the IndyCam and
  617. + its analog video input port).  Galileo/Indy Video is available
  618. + only if you have those optional hardware products installed.
  619. +    
  620. + Then choose the input.  For VINO, this control is labeled
  621. + "Default In".  For Galileo/Indy Video, this control is labeled
  622. + "Input Source".  You may need to close other video apps
  623. + (including Capture) to do this.
  624. + Don't forget to make sure that your camera or VCR is plugged
  625. + in correctly, and that your camera can see video.  Look into
  626. + the camera's viewfinder to make sure it is working.
  627. +    
  628. + Choose "Live Video Input" off the Utilities menu to check.
  629. + The video you see here is what Capture will use.  Close this
  630. + window when you are satisfied.
  631. +    
  632. + If you closed Capture, start it again (don't forget -ev1 on
  633. + the command line if you are using Galileo/Indy Video; see
  634. + above).  You should get the video you want.
  635.  
  636. ------------------------------
  637.  
  638. Subject: + -18- Why does Capture tell me to "Please Stand By", instead
  639.                 of capturing video?
  640. Date: Tue Nov 15 15:39:30 PST 1994
  641.  
  642. + Capture presents the "Please Stand By" message in two circumstances:
  643.  
  644. +   1) It is processing video that you just captured.
  645. +   2) Your system has video support, but Capture for some
  646. +      reason cannot use it.
  647.  
  648. + Symptom 1) is normal operation for the program, and is nothing
  649. + you should worry about.
  650.  
  651. + Symptom 2) can happen for several reasons.  Check the following:
  652.  
  653. +   - Make sure to close down all other applications which use
  654. +     video.
  655.  
  656. +   - If you are using the IndyCam, make sure it is plugged in
  657. +     to the back of the machine.  Perhaps the connector may have
  658. +     worked itself loose.
  659.  
  660. +   - If you still get the "Please Stand By" message, reboot the
  661. +     system.  It might be possible that the system video services
  662. +     had become wedged for some reason; a reboot fixes this
  663. +     problem.
  664.  
  665. +   - Make sure that you have the signal source set correctly,
  666. +     and that video shows up onscreen from the Video Control
  667. +     Panel.  See above question, "I cannot get the right
  668. +     video to show in the Capture tool!" for details on how
  669. +     to do this.
  670.  
  671. ------------------------------
  672.  
  673. Subject: + -19- Capture just grabbed a file for me, but now I can't find
  674.                 it.  Where did Capture hide it?
  675. Date: Thu Nov 17 09:08:40 PST 1994
  676.  
  677. + Capture always places its file in the directory it was run
  678. + from.  If you ran it from the Indigo Magic desktop, odds are
  679. + that it placed the file in your home directory.
  680.  
  681. + To find out the name of the file, look in the title bar, or
  682. + choose "Settings" from the "Actions" menu and look in the
  683. + first typein blank.
  684.  
  685. ------------------------------
  686.  
  687. Subject: + -20- Under IRIX 5.3, my system has a video board and/or
  688.                 IndyCam, but Capture won't let me use it.  It just greys
  689.                 out the video options on its menu.  How can I make it
  690.                 work?
  691. Date: Thu Nov 17 09:08:40 PST 1994
  692.  
  693. + Odds are that you do not have video support installed on your system.
  694.  
  695. + Here is what you need to have installed, at a bare minimum:
  696.  
  697. + I  dmedia_eoe.sw.common 11/07/94  Common Execution Environment Components
  698. + I  dmedia_eoe.sw.compression  11/07/94  Compression Execution Environment
  699. + I  dmedia_eoe.sw.video  11/07/94  Video Execution Environment
  700.  
  701. + For IndyCam users, you also need the following:
  702.  
  703. + I  vino.sw.eoe          11/07/94  Indy Video-In Execution Software
  704.  
  705.  
  706. + For Galileo/Indy Video users, you also need the following:
  707.  
  708. + I  galileo.sw.eoe       11/07/94  Galileo Video Execution Software
  709.  
  710.  
  711. + For users with the Cosmo Compress option, you also need these
  712. + systems installed:
  713.  
  714. + I  cosmo.sw.eoe         11/07/94  Cosmo Compress Execution Software
  715. + I  dmedia_eoe.sw.utilities  11/07/94  Media Record, Playback, Convert Commands
  716.  
  717. ------------------------------
  718.  
  719. Subject: + -21- I created a movie with audio using makemovie, but the
  720.                 soundtrack plays back really garbled and choppy.  What
  721.                 do I do?
  722. Date: Thu Nov 17 09:08:40 PST 1994
  723.  
  724. + You created a movie with image and audio tracks of unequal length.
  725. + This probably happened because you chose a frame rate for the
  726. + movie which caused the image track to not match the length of the
  727. + audio track.
  728.  
  729. + There are a few solutions for this problem.  The easiest is to
  730. + choose a frame rate which makes the image track match the audio
  731. + track in length, and then use makemovie to create a new movie file
  732. + with the correct frame rate.  Another way is to pad the shorter
  733. + track (image or audio) out with additional content to match the
  734. + longer one.
  735.  
  736. + In IRIX 5.3, Moviemaker will automatically detect movies like these
  737. + and offer to correct them for you.  You can choose either of the
  738. + above methods of correction.  If you choose to pad out the shorter
  739. + track, Moviemaker adds blank material, which you can later edit.
  740.  
  741. ------------------------------
  742.  
  743. Subject: + -22- Does anyone know the maximum size a movie file that
  744.                 MovieMaker or MoviePlayer can handle?  Is it limited by
  745.                 free memory, or will it play from the hard drive?
  746. Date: Thu Nov 17 09:08:40 PST 1994
  747.  
  748. + Movieplayer plays movies from the hard drive.  Moviemaker edits
  749. + movies directly on disk.
  750.  
  751. + It is entirely possible to write an appplication which plays
  752. + movies entirely from memory (see below for details), but
  753. + Movieplayer does not support that.
  754.  
  755. ------------------------------
  756.  
  757. Subject: + -23- How do I write a program to access the pixels of a video
  758.                 frame in a movie file for image processing purposes?
  759. Date: Wed Nov 16 13:04:20 PST 1994
  760.  
  761. + Basic overview:
  762.  
  763. + You need to write the program using the Movie Library.
  764. + Open the file using mvOpenFile(3mv), get a handle to the
  765. + image track using mvFindTrackByMedium(3mv), then read the
  766. + individual image frames using mvReadFrames(3mv).
  767.  
  768. + Details on the format of image data:
  769.  
  770. + The following libmovie calls return information to describe
  771. + the format of the data returned by mvReadFrames():
  772.  
  773. + int           mvGetImageWidth      ( MVid imageTrack );
  774. + int           mvGetImageHeight     ( MVid imageTrack );
  775. + double        mvGetImageRate       ( MVid imageTrack );
  776. + const char*   mvGetImageCompression( MVid imageTrack );
  777. + DMinterlacing mvGetImageInterlacing( MVid imageTrack );
  778. + DMpacking     mvGetImagePacking    ( MVid imageTrack );
  779. + DMorientation mvGetImageOrientation( MVid imageTrack );
  780.  
  781. + For interlacing, packing and orientation, the types of
  782. + formats can be found in <dm_image.h>.
  783.  
  784. + Once you have the description of format for the data in the
  785. + image track, you can treat the buffer of untyped data
  786. + returned by mvReadFrames() as an array of pixels.  If you
  787. + need the data in a different format for your image
  788. + processing or file I/O, you will need to perform the
  789. + conversion yourself.
  790.  
  791. + For writing movies, the process works similarly.  Create a
  792. + DMparams structure that describes the format of the data
  793. + you will be writing, and pass that to mvAddTrack().  This
  794. + creates an image track with the data format you want.  Then
  795. + pass pixel data in that format to mvInsertFrames().
  796.  
  797. + Note that the Movie Library uses the MVid data type to
  798. + represent both movies, and tracks within the movies.  So
  799. + when you write a program to read or write image frames,
  800. + you will have two MVid variables - one for the movie as
  801. + a whole, and one for the image track embedded within the
  802. + movie.
  803.  
  804. + Check the Digital Media Programmer's Guide and the Movie
  805. + Library Manual pages for more details, as well as detailed
  806. + instructions on how to use these calls.
  807.  
  808. ------------------------------
  809.  
  810. Subject: + -24- How do I write a program which can write individual
  811.                 frames from a movie file out to a still image file?
  812. Date: Wed Nov 16 13:04:20 PST 1994
  813.  
  814. + Once you have managed to read individual frames from a
  815. + movie file (see above), you have several options for
  816. + writing the still frames to an image file.
  817.  
  818. + There is an image library, libimage.a, which supports
  819. + reading and writing the Silicon Graphics RGB file format.
  820. + Sample programs for using this library appear in the
  821. + 4Dgifts subsystem.
  822.  
  823. + Also, you can purchase the optional SGI ImageVision
  824. + Library.  ImageVision supports output to several image file
  825. + formats, including SGI, TIFF, JFIF, and its own proprietary
  826. + FIT format.  C++ developers can add their own file
  827. + formats.  ImageVision also provides several powerful
  828. + operators for converting, procesing, and displaying image
  829. + data, and also provides hardware acceleration on SGI
  830. + platforms which support it.  Contact your SGI sales office
  831. + for more details (see above for details about where to
  832. + call).
  833.  
  834. + Finally, make sure you've installed the Movie Library
  835. + example programs.  They contain a program called
  836. + editmovie.c which writes still frames to image files, using
  837. + ImageVision to write the data to disk.
  838.  
  839. ------------------------------
  840.  
  841. Subject: + -25- I'm using the Movie Library to create QuickTime movies
  842.                 using Apple's Video compression.  When are default key-
  843.                 frames placed in a QuickTime movie made with the SGI
  844.                 movie library?
  845. Date: Wed Nov 16 13:04:20 PST 1994
  846.  
  847. + Currently, key frames are placed by default every fifth
  848. + frame.  Currently, there is no mechanism to customize
  849. + this feature.
  850.  
  851. ------------------------------
  852.  
  853. Subject: + -26- The Movie Library has calls to play a movie in a file,
  854.                 memory or a file descriptor.  But all of them seem to
  855.                 assume that the complete movie is available locally.
  856.                 How can I play a movie all of which is not available
  857.                 locally?
  858. Date: Wed Nov 16 13:04:20 PST 1994
  859.  
  860. + It's really not possible at the moment.  The Movie Library
  861. + needs access to both the header/indexing information stored
  862. + in the movie file, as well as the media data itself in
  863. + order to play the movie.
  864.  
  865. + It may be possible to do this by passing a socket
  866. + descriptor instead of a file descriptor.  There definitely
  867. + is a problem of seeking to a particular frame.  If the whole
  868. + movie is streamed in with no mvSetCurrentFrame() kind of
  869. + calls, it may work.
  870.  
  871. ------------------------------
  872.  
  873. Subject: + -27- When programming with the Movie Library, can we insert
  874.                 and delete frames from a playing movie?
  875. Date: Wed Nov 16 13:04:20 PST 1994
  876.  
  877. + Absolutely not.
  878.  
  879. ------------------------------
  880.  
  881. Subject: + -28- When writing frames to a movie with the Movie Library,
  882.                 if we fix the image track parameters, does the byte size
  883.                 of the frame remain constant across frames?
  884. Date: Wed Nov 16 13:04:20 PST 1994
  885.  
  886. + In general, no.  The compression codecs return variable size byte
  887. + counts for the frames they compress.
  888.  
  889. ------------------------------
  890.  
  891. Subject: + -29- How do I write a program to play a movie entirely from
  892.                 memory?
  893. Date: Wed Nov 16 13:04:20 PST 1994
  894.  
  895. + Typically, you open the movie file using the Unix open() system
  896. + call.  You then allocate a memory buffer as large as you need, and
  897. + use the read() system call to read the entire movie into the memory
  898. + buffer.  Then pass the pointer to this memory region to mvOpenMem()
  899. + and you're set.
  900.  
  901. + If you want to get more fancy, you can use the mpin() system call
  902. + to attempt to lock your memory buffer in physical memory, so
  903. + it does not get swapped out.  Or, you can use the mmap() system
  904. + call to associate your disk file with a memory pointer, and pass
  905. + the memory-mapped region to mvOpenMem().  This has certain advantages
  906. + which are outside the scope of this FAQ; consult the manual pages
  907. + and a good book on Unix system-call level programming for details.
  908.  
  909. ------------------------------
  910.  
  911. Subject: + -30- How do I capture movies from live video within my
  912.                 application?
  913. Date: Wed Nov 16 13:04:20 PST 1994
  914.  
  915. + In IRIX 5.2, your only choice is to write your own code using
  916. + the Audio, Video, and Movie Libraries to capture live video
  917. + and audio and save it to disk - not an easy task.
  918.  
  919. + In IRIX 5.3, your program can use the Capture Tool to do this
  920. + work.  You can invoke the Capture tool, passing it a file name
  921. + and a set of options telling it what media to capture and what
  922. + compression to use.  When the user exits the Capture Tool, you
  923. + simply open the movie file it recorded for you.  Check the
  924. + 5.3 manual page for Capture for more details.
  925.  
  926. ------------------------------
  927.  
  928. Subject: + -31- How do I write a program to read and write compressed
  929.                 data to a movie file?
  930. Date: Wed Nov 16 13:04:20 PST 1994
  931.  
  932. + Check out the manual pages for the mvGetCompressedImageSize(),
  933. + mvReadCompressedImage() and mvInsertCompressedImage() calls.
  934. + They should do what you need.
  935.  
  936. ------------------------------
  937.  
  938. Subject: + -32- I want to write a program which creates a JPEG-
  939.                 compressed movie file, but I need to control the
  940.                 compression quality.  How do I do this with the Movie
  941.                 Library?
  942. Date: Wed Nov 16 13:04:20 PST 1994
  943.  
  944. + Currently, the way to do this is to create a movie file with
  945. + all the appropriate image track parameters (see above).  But instead
  946. + of simply writing frames to the movie and letting the Movie Library
  947. + automatically compress the frames for you, you handle the compression
  948. + yourself.
  949. + To do the compression yourself, you open a Compression Library JPEG
  950. + compressor, set the quality factor, and use it to compress each
  951. + frame.  Then you write the *compressed* data to the movie file
  952. + (see above for instructions on how to do this).
  953.  
  954. ------------------------------
  955.  
  956. Subject: + -33- I want to write a program which can create a JPEG-
  957.                 compressed movie file compatible with the Cosmo Compress
  958.                 board, SGI's hardware JPEG accelerator.  How do I do
  959.                 this?
  960. Date: Wed Nov 16 13:04:20 PST 1994
  961.  
  962. + Movies which are compatible with the Cosmo Compress board
  963. + have the following characteristics:
  964.  
  965. +   - must be JPEG.
  966. +   - width must be video sized, even multiple of 8.
  967. +   - height must be video sized, even multiple of 8.
  968. +   - image frames must be interlaced.
  969. +   - image frames must be oriented top to bottom.
  970. +   - image packing must be RGB.
  971.  
  972. + Here is a piece of code which will check an existing image
  973. + track for you.  C programmers will hopefully forgive the use
  974. + of C++ style comments:
  975.  
  976.  
  977. + ///////////////
  978. + //
  979. + // Check to see if the video track is one of the subset of
  980. + // JPEG-encoded tracks that the cosmo board can play.
  981. + //
  982. + ///////////////
  983.  
  984. + static DMboolean isCosmoCompatible( MVid videotrack )
  985. + {
  986. +     //
  987. +     // must be JPEG.
  988. +     //
  989. +     if ( mvGetCompression(videotrack) != IMAGE_COMP_JPEG ) {
  990. +         return DM_FALSE;
  991. +     }
  992.  
  993. +     //
  994. +     // width must be video sized, even multiple of 8.
  995. +     //
  996. +     int width = mvGetImageWidth(videotrack);
  997. +     if ( width < 16 || width > 768 || width % 8 ) {
  998. +         return DM_FALSE;
  999. +     }
  1000.  
  1001. +     //
  1002. +     // height must be video sized, even multiple of 8.
  1003. +     //
  1004. +     int height = mvGetImageHeight(videotrack);
  1005. +     if ( height < 16 || height > 2*296 || height % 8 ) {
  1006. +         return DM_FALSE;
  1007. +     }
  1008.  
  1009. +     //
  1010. +     // image frames must be interlaced.
  1011. +     //
  1012. +     if ( mvGetImageInterlacing(videotrack) == DM_IMAGE_NONINTERLACED) {
  1013. +         return DM_FALSE;
  1014. +     }
  1015.  
  1016. +     //
  1017. +     // image frames must be oriented top to bottom.
  1018. +     //
  1019. +     if ( mvGetImageOrientation(videotrack) != DM_TOP_TO_BOTTOM ) {
  1020. +      return DM_FALSE;
  1021. +     }
  1022.  
  1023. +     //
  1024. +     // image packing must be RGB.
  1025. +     //
  1026. +     if ( mvGetImagePacking(videotrack) != DM_PACKING_RGB ) {
  1027. +         return DM_FALSE;
  1028. +     }
  1029.  
  1030. +     //
  1031. +     // we've run the gauntlet.  dmplay can play this movie.
  1032. +     //
  1033. +     return DM_TRUE;
  1034. + }
  1035.  
  1036. ------------------------------
  1037.  
  1038. Subject: + -34- I simply want to create a JPEG-compressed movie which is
  1039.                 compatible with the Cosmo Compress board.  I don't want
  1040.                 to write my own program.  How do I do this?
  1041. Date: Wed Nov 16 13:04:20 PST 1994
  1042.  
  1043. + In IRIX 5.3, there are three ways to do this:
  1044.  
  1045. + 1) Use the dmrecord utility to record live video from the Galileo
  1046. + or Indy Video options.
  1047.  
  1048. + 2) Use the Capture tool to record live video from the Galileo
  1049. + or Indy Video options.
  1050.  
  1051. + 3) Use the makemovie utility to generate a cosmo-compatible movie
  1052. + from a collection of still images.  Here is an excerpt from the
  1053. + manual page:
  1054.  
  1055. +   To make an odd interlaced, 640x480, JPEG compressed movie with top-to-
  1056. +   bottom orientation (of the sort that can be played back on the Cosmo
  1057. +   compression board) from image files img1.rgb, img2.rgb, and img3.rgb:
  1058.  
  1059. +   makemovie -o movie3.mv -c jpeg -s 640,480 -i odd -t \
  1060. +            img1.rgb img2.rgb img3.rgb
  1061.  
  1062. ------------------------------
  1063.  
  1064. End of sgi/faq/movie Digest
  1065. ******************************
  1066. -- 
  1067. The SGI FAQ group                                sgi-faq@viz.tamu.edu
  1068. Finger us for info on the SGI FAQs, or look in viz.tamu.edu:/pub/sgi.
  1069.  
  1070.